# first_color = "red"
# second_color = "blue"
# third_color = "green"
# nth_color = "black"
# puts "our colors"
# puts first_color
# puts second_color
# puts third_color
# puts nth_color
my_color_list = ["red", "blue", "green", "black"]
# puts my_color_list[0]
# puts my_color_list[1]
# puts my_color_list[2]
# puts my_color_list[3]
# puts my_color_list[4]
# my_color_list.length.times do |i|
#   puts "the color is #{my_color_list[i]}"
# end
# my_color_list.each do |color|
#   puts "the color is #{color}"
# end
my_color_list.each_with_index do |color, index|
  puts "the color is #{color} and the index is #{index}"
end

